Learn how to set an index’s query language through the dashboard and the API.
ignorePlurals
, which treats the singular and plural forms of a word as equivalent (they match even if they’re spelled differently).removeStopWords
, which prevents stop words from being processed as a part of the query. English stop words include “the”, “a”, “an”, “and”.
Use queryLanguages
to set the languages that these parameters use to determine stop words or plurals.queryLanguages
and indexLanguages
for your indices. If you don’t, the engine uses either the default (all supported languages) or the list of languages specified in ignorePlurals
and removeStopWords
.
This can lead to unexpected search results.ignorePlurals
and removeStopWords
in the Algolia dashboard.
setSettings
method.
In the following example, queryLanguages
is set to English and ignorePlurals
is set to true
. This means “mice” and “mouse” are treated as equal.